﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>创建图标</title>
    <style type="text/css">
        #maps
        {
            height: 450px;
        }
    </style>
<!--    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=zh-CN"></script>-->
    <script type="text/javascript" src="http://ditu.google.cn/maps/api/js?sensor=false&language=zh-CN&key=111"></script>
    <script type="text/javascript" language="javascript">
        //地图初始化函数
        function initialize() {
            var myOptions = {
                center: new google.maps.LatLng(39, 117),
                zoom: 10,
                mapTypeControl: true,
                mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, poistion: google.maps.ControlPosition.TOP_RIGHT,
                    mapTypeIds: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.TERRAIN,
  	        google.maps.MapTypeId.HYBRID, google.maps.MapTypeId.SATELLITE]
                },
                navigationControl: true,
                navigationControlOptions: { style: google.maps.NavigationControlStyle.ZOOM_PAN },
                scaleControl: true,
                //disableDoubleClickZoom: true/false,
                streetViewControl: true,
                //draggableCursor: 'move',
                overviewMapControl: true,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            var map = new google.maps.Map(document.getElementById("maps"), myOptions);
            var image = "./fox.gif"; //图标图片地址
            var LatLng = new google.maps.LatLng(39, 117);
            //创建图标
            var beachMarker = new google.maps.Marker({
                position: LatLng, map: map, icon: image, title: "悉尼"
            });
        }                                                    
    </script>

</head>
<body onload='initialize()'>
    <div id="maps">
    </div>
</body>
</html>

